package com.netty.tcp.ew.domain;

//import com.ruoyi.common.annotation.Excel;
//import com.ruoyi.common.annotation.Excels;
//import com.ruoyi.common.core.domain.BaseEntity;
//import com.ruoyi.ew.base.domain.*;
//import com.ruoyi.ew.setting.domain.BaseProtocl;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 设备信息对象 base_device
 *
 * @author Mr.wu
 * @date 2023-10-04
 */
public class DeviceControl
{
    private static final long serialVersionUID = 1L;

    /** 设备ID */
    private Integer deviceId;

    /** 设备编号 */

    private String deviceCode;

    /** 设备地址 */

    private String deviceAddress;

    /** 设备协议 */
    private Integer deviceProtocl;


    private String protoclName;


    /** 所属户号 */
    private Integer deviceAccountId;

    private String accountCode;



    /** 所在商铺 */
    private Integer deviceRoomId;


    private String roomCode;



    /** 所属区域 */
    private Integer deviceAreaId;

    /** 所属区域 */

    private String areaName;

    /** 区域对象 */

    private BaseArea baseArea;

    /** 设备网关 */
    private Integer deviceIotId;


    private String iotName;



    /** 设备类型 */

    private String deviceType;

    /** 设备状态 */

    private String deviceStatus;

    /** 拉合闸状态 */

    private String deviceOnOffStatus;

    /** 是否保电 */

    private String deviceHold;

    /** 设备最近总读数 */

    private Double deviceRegistrationCount;

    /** 尖段读数 */

    private BigDecimal deviceRegistrationSpike;

    /** 峰段读数 */

    private BigDecimal deviceRegistrationPeak;

    /** 平段读数 */

    private BigDecimal deviceRegistrationFlat;

    /** 谷段读数 */

    private BigDecimal deviceRegistrationValley;

    /** 更新时间 */
    private Date updateTime;

    /** 数据归属 */
    private Integer companyId;

    private String iotImei;

    private Integer devicePriceId;
    private Double priceNumber;



    public void setDeviceId(Integer deviceId)
    {
        this.deviceId = deviceId;
    }

    public Integer getDeviceId()
    {
        return deviceId;
    }

    public void setDeviceCode(String deviceCode)
    {
        this.deviceCode = deviceCode;
    }

    public String getDeviceCode()
    {
        return deviceCode;
    }
    public void setDeviceAddress(String deviceAddress)
    {
        this.deviceAddress = deviceAddress;
    }

    public String getDeviceAddress()
    {
        return deviceAddress;
    }
    public void setDeviceProtocl(Integer deviceProtocl)
    {
        this.deviceProtocl = deviceProtocl;
    }

    public Integer getDeviceProtocl()
    {
        return deviceProtocl;
    }

    public void setProtoclName(String protoclName){
        this.protoclName = protoclName;
    }

    public String getProtoclName(){
        return protoclName;
    }


    public void setDeviceAccountId(Integer deviceAccountId)
    {
        this.deviceAccountId = deviceAccountId;
    }

    public Integer getDeviceAccountId()
    {
        return deviceAccountId;
    }

    public void setAccountCode(String accountCode){ this.accountCode = accountCode;}

    public String getAccountCode(){ return accountCode;}


    public void setDeviceRoomId(Integer deviceRoomId)
    {
        this.deviceRoomId = deviceRoomId;
    }

    public Integer getDeviceRoomId()
    {
        return deviceRoomId;
    }

    public void setRoomCode(String roomCode){ this.roomCode = roomCode;};

    public String getRoomCode(){ return roomCode;}


    public void setDeviceAreaId(Integer deviceAreaId)
    {
        this.deviceAreaId = deviceAreaId;
    }

    public Integer getDeviceAreaId()
    {
        return deviceAreaId;
    }

    public String getAreaName(){ return areaName;}

    public void setAreaName(String areaName){ this.areaName = areaName;}

    public BaseArea getBaseArea()
    {
        return baseArea;
    }

    public void setBaseArea(BaseArea baseArea)
    {
        this.baseArea = baseArea;
    }

    public void setDeviceIotId(Integer deviceIotId)
    {
        this.deviceIotId = deviceIotId;
    }

    public Integer getDeviceIotId()
    {
        return deviceIotId;
    }

    public String getIotName(){ return iotName;}

    public void setIotName(String iotName){ this.iotName = iotName;}



    public void setDeviceType(String deviceType)
    {
        this.deviceType = deviceType;
    }

    public String getDeviceType()
    {
        return deviceType;
    }
    public void setDeviceStatus(String deviceStatus)
    {
        this.deviceStatus = deviceStatus;
    }

    public String getDeviceStatus()
    {
        return deviceStatus;
    }
    public void setDeviceOnOffStatus(String deviceOnOffStatus)
    {
        this.deviceOnOffStatus = deviceOnOffStatus;
    }

    public String getDeviceOnOffStatus()
    {
        return deviceOnOffStatus;
    }
    public void setDeviceHold(String deviceHold)
    {
        this.deviceHold = deviceHold;
    }

    public String getDeviceHold()
    {
        return deviceHold;
    }
    public void setDeviceRegistrationCount(Double deviceRegistrationCount)
    {
        this.deviceRegistrationCount = deviceRegistrationCount;
    }

    public Double getDeviceRegistrationCount()
    {
        return deviceRegistrationCount;
    }
    public void setDeviceRegistrationSpike(BigDecimal deviceRegistrationSpike)
    {
        this.deviceRegistrationSpike = deviceRegistrationSpike;
    }

    public BigDecimal getDeviceRegistrationSpike()
    {
        return deviceRegistrationSpike;
    }
    public void setDeviceRegistrationPeak(BigDecimal deviceRegistrationPeak)
    {
        this.deviceRegistrationPeak = deviceRegistrationPeak;
    }

    public BigDecimal getDeviceRegistrationPeak()
    {
        return deviceRegistrationPeak;
    }
    public void setDeviceRegistrationFlat(BigDecimal deviceRegistrationFlat)
    {
        this.deviceRegistrationFlat = deviceRegistrationFlat;
    }

    public BigDecimal getDeviceRegistrationFlat()
    {
        return deviceRegistrationFlat;
    }
    public void setDeviceRegistrationValley(BigDecimal deviceRegistrationValley)
    {
        this.deviceRegistrationValley = deviceRegistrationValley;
    }

    public BigDecimal getDeviceRegistrationValley()
    {
        return deviceRegistrationValley;
    }
    public void setCompanyId(Integer companyId)
    {
        this.companyId = companyId;
    }

    public Integer getCompanyId()
    {
        return companyId;
    }

    public void setUpdateTime(Date updateTime){
        this.updateTime = updateTime;
    }

    public Date getUpdateTime(){
        return updateTime;
    }

    public void setIotImei(String iotImei){ this.iotImei = iotImei;}
    public String getIotImei(){ return iotImei;}
    public void setPriceNumber(Double priceNumber){ this.priceNumber = priceNumber;}
    public Double getPriceNumber(){ return priceNumber;}

    public void setDevicePriceId(Integer devicePriceId){ this.devicePriceId = devicePriceId;}
    public Integer getDevicePriceId(){return devicePriceId;}


    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("deviceId", getDeviceId())
                .append("deviceCode", getDeviceCode())
                .append("deviceAddress", getDeviceAddress())
                .append("deviceAccountId", getDeviceAccountId())
                .append("deviceRoomId", getDeviceRoomId())
                .append("deviceAreaId", getDeviceAreaId())
                .append("deviceIotId", getDeviceIotId())
                .append("deviceType", getDeviceType())
                .append("deviceStatus", getDeviceStatus())
                .append("deviceOnOffStatus", getDeviceOnOffStatus())
                .append("deviceHold", getDeviceHold())
                .append("deviceRegistrationCount", getDeviceRegistrationCount())
                .append("deviceRegistrationSpike", getDeviceRegistrationSpike())
                .append("deviceRegistrationPeak", getDeviceRegistrationPeak())
                .append("deviceRegistrationFlat", getDeviceRegistrationFlat())
                .append("deviceRegistrationValley", getDeviceRegistrationValley())
                .append("updateTime", getUpdateTime())
                .append("companyId", getCompanyId())
                .toString();
    }
}
